using System.Collections.Generic;

namespace fluentvaly.Results
{
    public class ValidationResults : List<ValidationResult>
    {
        public bool Passed
        { 
            get
            {
                return !Exists(p => !p.Passed);
            }
        }

        public new void Add(ValidationResult result)
        {
            if(!result.Passed) base.Add(result);
        }
    }
}